package com.kclm;

import com.kclm.config.SpringConfig;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.sql.DataSource;

/**
 * @Author : lvhx
 * @Date: 2025/11/4 16:34
 * @Description:
 */
//@SpringJUnitConfig(classes = SpringConfig.class)
@RunWith(SpringJUnit4ClassRunner.class)
//@ContextConfiguration("classpath:spring.xml")
@ContextConfiguration(classes = SpringConfig.class)
public class JunitTest4Basic  {
//    @Autowired
//    private JdbcTemplate jdbcTemplate;
//    @Autowired
//    private DataSource dataSource;
//
//    @Test
//    public void testo1(){
//        System.out.println("===================================");
//        System.out.println(jdbcTemplate);
//        System.out.println(dataSource);
//    }
}
